export default {
  setUserPhone(state, phone) {
    state.userPhone = phone;
    window.localStorage.setItem('userPhone', phone);
  },
  setToken(state, token) {
    state.token = token;
    window.localStorage.setItem('token', token);
  },
  logout(state) {
    state.userPhone = null;
    state.token = null;
    window.localStorage.removeItem('userPhone');
    window.localStorage.removeItem('token');
  }
}